interface State {
  config: {
    axiosLoading: boolean,
    closeAxiosErrorLog: boolean,
  },
  user: {
    token: string,
    appInfo: {
      key: string,
    },
  },
}

const getters = {
  axiosLoading: (state: State): boolean => state.config.axiosLoading,
  closeAxiosErrorLog: (state: State): boolean => state.config.closeAxiosErrorLog,
  token: (state: State): string => state.user.token,
  key: (state: State): string => state.user.appInfo.key,
};
export default getters;
